from django.urls import path
from .views import ActivityView, ActivityParticipantView, ActivityDeleteView

app_name = 'activity'

urlpatterns = [
    path('activities/', ActivityView.as_view(), name='activities'),
    path('activities/<int:activity_id>/join/', ActivityParticipantView.as_view(), name='activity-join'),
    path('activities/<int:activity_id>/participants/', ActivityParticipantView.as_view(), name='activity-participants'),
    path('activities/<int:activity_id>/', ActivityDeleteView.as_view(), name='activity-delete'),  # 删除活动
    # 获取活动参与者
] 